From: Colin Walters Date: Fri, 26 Jun 2009 22:35:48 +0000 (-0400) Subject: Avoid duplicating most used applications in the AppDisplay cache X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11253 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=04fbaf4f27e7ce6cbf7b952a607cd22eca586855;p=gnome-shell.git Avoid duplicating most used applications in the AppDisplay cache All used applications should be in the database from the menus anyways. --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index b2ef0a0e0..a18d3af04 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -344,15 +344,6 @@ AppDisplay.prototype = { this._addAppForId(appId); } - // Some applications, such as Evince, might not be in the menus, - // but might be returned by the applications monitor as most used - // applications, in which case we include them. - let mostUsedAppInfos = AppInfo.getMostUsedApps(MAX_ITEMS); - for (let i = 0; i < mostUsedAppInfos.length; i++) { - let appInfo = mostUsedAppInfos[i]; - this._addApp(appInfo); - } - this._appsStale = false; },